/*
 * @Author: ShaXin
 * @Date: 2022-01-11 16:38:04
 * @LastEditors: jgg
 * @LastEditTime: 2022-01-13 15:08:48
 */
import request from '../utils/request'

const abcApi = {}

///qy/web/sys/dict/findDict/current/{current}/pageSize/{pageSize}
abcApi.findDict = (params) => {
    return request({
        url: `/web/sys/dict/list`,
        method: 'post',
        params:{}
    })
}

abcApi.getTableData = (params) => {
    return request({
        url: `/web/sys/dict/getByType`,
        method: 'get',
        params:params
    })
}

abcApi.deleteDict = (params) => {
    return request({
        url: `/web/sys/dict/deleteDict`,
        method: 'get',
        params:params
    })
}

abcApi.saveDict = (params) => {
    return request({
        url: `/web/sys/dict/saveDict`,
        method: 'post',
        data:params
    })
}

abcApi.updateDict = (params) => {
    return request({
        url: `/web/sys/dict/updateDict`,
        method: 'post',
        data:params
    })
}

export default abcApi